<template>
  <div>
    <div class="swiper-container">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
            <img src="../assets/images/picture1.jpg" alt="">
        </div>
        <div class="swiper-slide">
             <img src="../assets/images/picture2.jpg" alt="">
        </div>
        <div class="swiper-slide">
             <img src="../assets/images/picture3.jpg" alt="">
        </div>
        <div class="swiper-slide">
             <img src="../assets/images/picture4.jpg" alt="">
        </div>
        <div class="swiper-slide">
             <img src="../assets/images/picture5.jpg" alt="">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Swiper from "../assets/Swiper/dist/js/swiper.min.js";
import "../assets/Swiper/dist/css/swiper.min.css";
export default {
  name:"mybanner",
  mounted() {
    var mySwiper = new Swiper(".swiper-container", {
      autoplay: 2000, //可选选项，自动滑动
      loop : true,
    });
  },
};
</script>

<style lang="scss" scoped>
.swiper-container {
  .swiper-wrapper {
    .swiper-slide {
      img {
        width: 100%;
        height: 150px;
      }
    }
  }
}
</style>